package product;

import java.util.Date;

public class SaleRecord {
    private final String ticketId;
    private final Show show;
    private final Seat seat;
    private final double price;
    private final Date saleTime;
    private boolean isRefunded;
    private Date refundTime;
    private double refundAmount;

    public SaleRecord(String ticketId, Show show, Seat seat, double price, Date saleTime) {
        this.ticketId = ticketId;
        this.show = show;
        this.seat = seat;
        this.price = price;
        this.saleTime = saleTime;
    }

    // Getters and Setters
    public String getTicketId() { return ticketId; }
    public Show getShow() { return show; }
    public Seat getSeat() { return seat; }
    public double getPrice() { return price; }
    public Date getSaleTime() { return saleTime; }
    public boolean isRefunded() { return isRefunded; }
    public void setRefunded(boolean refunded) { isRefunded = refunded; }
    public Date getRefundTime() { return refundTime; }
    public void setRefundTime(Date refundTime) { this.refundTime = refundTime; }
    public double getRefundAmount() { return refundAmount; }
    public void setRefundAmount(double refundAmount) { this.refundAmount = refundAmount; }
}